#include "content_node.h"

#include "node.h"
#include "element.h"

using namespace std;

ContentNode::ContentNode(char * content) : mContent(content) {
}

ContentNode::ContentNode(const ContentNode& e) {
	// Nothing to do here
	mContent = e.mContent;
}

ContentNode::~ContentNode() {
	// Nothing to do here
}

void ContentNode::setContent(string content) {
	mContent.assign(content);
}

string ContentNode::getContent() {
	return mContent;
}

void ContentNode::print(ostream& out) {
	
	out << mContent;	
	
}

ContentNode* ContentNode::clone() const {
	ContentNode* newContent = new ContentNode(*this);
	
	return newContent;
}
